package com.bjtang.book.dto;

import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;

import lombok.Data;

@Data
public class IdsDto {
	@Valid
	private List<IdDto> idsDto;

	
	public List<Long> getList() {
		List<Long> idsList = new ArrayList<>();
		this.idsDto.forEach(e -> idsList.add(e.getId()));
		return idsList;
	}

}
